package top.lwaiting.service.impl;

import org.springframework.stereotype.Service;
import top.lwaiting.bean.ProductBean;
import top.lwaiting.service.ProductService;

import java.math.BigDecimal;

/**
 * @Description TODO
 * @ClassName ProductServiceImpl
 * @Author Yang
 * @Date 2025/5/28 15:23
 * @Version 1.0
 */
@Service
public class ProductServiceImpl implements ProductService {
    @Override
    public ProductBean getProductById(Long productId) {
        ProductBean product = new ProductBean();
        product.setId(productId);
        product.setPrice(new BigDecimal("99"));
        product.setProductName("西瓜-"+product.getId());
        product.setNum(10);
        return product;
    }
}
